package com.cortex.papaya.view;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

import com.cortex.papaya.search.Category;
import com.cortex.papayasearch.R;

import android.content.Context;
import android.graphics.Rect;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.ViewGroup.LayoutParams;
import android.widget.GridLayout;
import android.widget.RelativeLayout;
import android.widget.ScrollView;
import android.widget.TableLayout;
import android.widget.TableRow;
import android.widget.TextView;

public class CortexTextView extends TextView {
	
	
	public CortexTextView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public CortexTextView(Context context) {
		super(context);
	}
	@Override
	protected void onFinishInflate() {
		// TODO Auto-generated method stub
		super.onFinishInflate();
		init();
	}
	private void init(){
		// change the font of textView
		Typeface tf = Typeface.createFromAsset(getContext().getAssets(),"fonts/robotoLight.ttf");
		setTypeface(tf,Typeface.BOLD);
	}
	
}
